package com.henry.model;

import java.io.Serializable;
import java.util.List;

public class UserMessage implements Serializable {

    private static final long serialVersionUID = 5024668389462348202L;
    private String type;
    private User user;
    private List<Question> questions;


    public UserMessage() {
    }

    public UserMessage(String type) {
        this.type = type;
    }

    public UserMessage(String type, User user) {
        this.type = type;
        this.user = user;
    }

    public UserMessage(String type, List<Question> questions) {
        this.type = type;
        this.questions = questions;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public List<Question> getQuestions() {
        return questions;
    }

    public void setQuestions(List<Question> questions) {
        this.questions = questions;
    }

    @Override
    public String toString() {
        return "UserMessage{" +
                "type='" + type + '\'' +
                ", user=" + user +
                '}';
    }
}
